<template>
  <div>
    <a-card :bordered="false" >
      <a-table
        rowKey="id"
        size="middle"
        :columns="columns"
        :data-source="dataList"
        :pagination="false"
      >
      </a-table>
    </a-card>
  </div>
</template>
<script>
import AdvanceTable from '@/components/pt/table/AdvanceTable'
export default {
  name: 'BizProjectIndex',
    props: {
      projectNumber: {
        type: String,
        required: true
      },
      dataList: {
        type: Array,
        required: true
      },
      title: {
        type: String,
        default: '销售单列表'
      }
    },
  components: {
    AdvanceTable

  },
  data () {
    return {
      showAddModal: false,
      showEditModal: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 选中的主键集合
      selectedRowKeys: [],
      // 选中的数据集合
      selectedRows: [],
      // 高级搜索 展开/关闭
      advanced: false,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 总条数
      total: 0,
      // label的百分比
      labelCol: { span: 6 },
      // 内容区域的百分比
      wrapperCol: { span: 18 },
      columns: [
        {
          title: '销售单号',
          dataIndex: 'orderNumber',
          ellipsis: true,
          align: 'center',
          width: '12.8%'
        },
        {
          title: '下单日期',
          dataIndex: 'orderDate',
          ellipsis: true,
          align: 'center',
          width: '6%'
        },
        {
          title: '送货地址',
          dataIndex: 'address',
          ellipsis: true,
          align: 'center',
          width: '6%'
        },
        {
          title: '业主电话',
          dataIndex: 'phone',
          ellipsis: true,
          align: 'center',
          width: '6%'
        },
      ]
    }
  },
  methods: {

  }
}
</script>
